<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="hello4">
        <li v-for="message in messages">
            {{message.text}}
        </li>

    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        var vm = new Vue({
            el: "#hello4",
            data: {
                messages: [{
                    text: 'hello'
                }, {
                    text: 'world'
                }, {
                    text: 'java'
                }, ]
            }
        })
    </script>

</body>

</html>